package stack

import (
	C "gitee.com/ljfirst/algo-go-sdk/common/constant"
	"gitee.com/ljfirst/algo-go-sdk/src/data_structure/list"
)

/**
 * @author ljfirst
 * @version V1.0
 * @date 2023/6/27 01:09
 * @author-Email ljfirst@mail.ustc.edu.cn
 * @blogURL https://blog.csdn.net/ljfirst
 * @description
 * */
type LinkedStack struct {
	top list.Node
}

func (m *LinkedStack) Push(value int) {

}

func (m *LinkedStack) Pop() int {
	return 0
}

func (m *LinkedStack) Peak() int {
	return 0
}

func (m *LinkedStack) Resize() {

}

func (m *LinkedStack) Empty() bool { return false }
func (m *LinkedStack) Size() int   { return 0 }
func (m *LinkedStack) GetAttribute() *C.Attribute {
	return &C.Attribute{
		Tags: []string{C.Stack, C.List},
		Desc: &C.Desc{
			Name:   "LinkedStack",
			NameCn: "链表栈",
			ParamsDesc: map[string]string{
				"top": "链表栈的头节点",
			},
		},
	}
}
